<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

    <title>Title</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<ul>
    <li v-for="task of tasks">{{task}}</li>
</ul>
<script>
    var vm = new Vue({
        el: "ul",
        data: {
            tasks: ['测试1', '测试2']
        }
    });
</script>
</body>
</html>